package com.mdata.controller;

import com.mdata.common.ResultData;
import com.mdata.model.bo.model.GroupChatGetListModel;
import com.mdata.model.vo.GroupChatListVO;
import com.mdata.service.GroupChatService;
import com.mdata.utils.PageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/api/groupChat")
@RestController
public class GroupChatController {

    @Autowired
    private GroupChatService groupChatService;

    /**
     * 群管理列表
     * @param groupChatGetListModel
     * @return
     */
    @GetMapping("/manage")
    public ResultData getGroupChatManage(GroupChatGetListModel groupChatGetListModel){
        PageUtil<GroupChatListVO> groupChatManage = groupChatService.getGroupChatManage(groupChatGetListModel);
        return ResultData.success(groupChatManage);
    }
}
